home *** CD-ROM | disk | FTP | other *** search
Wrap
RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyyIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++)))) RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyyIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++)))) NNNNaaaammmmeeee RWHashDictionaryIterator - Rogue Wave library class SSSSyyyynnnnooooppppssssiiiissss #include <rw/hashdict.h> RWHashDictionary hd; RWHashDictionaryIterator iter(hd); DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn Iterator for class RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy, allowing sequential access to all the elements of RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy. Since RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy is unordered, elements are not accessed in any particular order. Like all Rogue Wave iterators, the "current item" is undefined immediately after construction -- you must define it by using ooooppppeeeerrrraaaattttoooorrrr(((()))) or some other (valid) operation. Once the iterator has advanced beyond the end of the collection it is no longer valid -- continuing to use it will bring undefined results. PPPPeeeerrrrssssiiiisssstttteeeennnncccceeee None PPPPuuuubbbblllliiiicccc CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyyIIIItttteeeerrrraaaattttoooorrrr(RWHashDictionary&); Construct an iterator for an RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy collection. Immediately after construction, the position of the iterator is undefined until positioned. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr OOOOppppeeeerrrraaaattttoooorrrr virtual RWCollectable* ooooppppeeeerrrraaaattttoooorrrr(((())))(); Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Advances the iterator to the next key- value pair and returns the key. Returns nnnniiiillll if the cursor is at the end of the collection. Use member function vvvvaaaalllluuuueeee(((()))) to recover the value. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss virtual RWCollectable* ffffiiiinnnnddddNNNNeeeexxxxtttt(const RWCollectable* target); Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Moves the iterator to the next key- value pair where the key iiiissssEEEEqqqquuuuaaaallll to the object pointed to by ttttaaaarrrrggggeeeetttt. PPPPaaaaggggeeee 1111 RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyyIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++)))) RRRRWWWWHHHHaaaasssshhhhDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyyIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++)))) Returns the key or nnnniiiillll if no key was found. virtual RWCollectable* kkkkeeeeyyyy() const; Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Returns the key at the current iterator position. RWCollectable* rrrreeeemmmmoooovvvveeee(); Removes the key-value pair at the current iterator position. Returns the key, or nnnniiiillll if there was no key-value pair. RWCollectable* rrrreeeemmmmoooovvvveeeeNNNNeeeexxxxtttt(const RWCollectable* target); Moves the iterator to the next key-value pair where the key iiiissssEEEEqqqquuuuaaaallll to the object pointed to by ttttaaaarrrrggggeeeetttt. Removes the key-value pair, returning the key or nnnniiiillll if there was no match. virtual void rrrreeeesssseeeetttt(); Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Inherited from class RRRRWWWWSSSSeeeettttIIIItttteeeerrrraaaattttoooorrrr. Resets the iterator to its initial state. RWCollectable* vvvvaaaalllluuuueeee() const; Returns the value at the current iterator position. RWCollectable* vvvvaaaalllluuuueeee(RWCollectable* newValue) const; Replaces the value at the current iterator position and returns the old value. PPPPaaaaggggeeee 2222